package cn.lazyturtle.bugpush.vo;


import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @author Administrator
 */

@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResponseEntity<T> {



    private String errorCode;

    private String errorMsg;

    private T body;

    public ResponseEntity() {
    }

    public ResponseEntity(String errorCode, String errorMsg, T body) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
        this.body = body;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return "ResponseEntity{" +
                "errorCode='" + errorCode + '\'' +
                ", errorMsg='" + errorMsg + '\'' +
                ", body=" + body +
                '}';
    }
}

